home *** CD-ROM | disk | FTP | other *** search
- Documentation for the PC-Catalog translation program PCATXLT
- (C) Copyright 1990 by Dale R. Andrews
- All rights reserved
-
- Version 1.0
-
-
- PCATXLT is a program designed primarily to translate
- PC-Catalog catalogs to and from other database formats. It could
- also be used to translate catalogs between other database formats
- and, to a limited extent, general database information other than
- catalogs. It presently supports the following formats: PC-Catalog,
- dBase III, DIF, ASCI and SDF. Most database programs should accept
- at least one of these formats. This allows you to use PC-Catalog
- for its strengths (updating, searching, and automatically adding
- descriptions) and other programs where it may be weak (report
- generation).
-
- PCATXLT is very easy to use. It is menu driven so you start
- it by simply executing PCATXLT. You are presented with a menu
- asking for the format of the catalog source. After selecting one,
- you are asked for the destination format. Next, you are asked for
- the filename of your input file. You should have noticed by now
- the similarity to PC-Catalog and that is, of course, intentional.
- After correctly supplying an input file name, you are asked for the
- output name. You will be warned before overwriting an existing
- file.
-
- Next you are asked for the maximum string length. All except
- SDF will read whatever length records are available. The record
- lengths read by SDF is defined by the user. dBase has a maximum
- written string length of 254 characters. All others will write
- lengths defined by PC-Catalog or the string length input by the
- user, whichever is less. Some programs using the DIF format may
- have a maximum string length as low as 64 characters. Several are
- far below 255 and will just crash if longer strings are input. You
- will either need to find the limitation in the program reading the
- DIF file or experiment with smaller and smaller string lengths
- until the program accepts them. This may also apply to ASCII and
- SDF files.
-
- The lengths defined by PC-Catalog are:
-
- 11 - Volume
- 67 - Subdirectory
- 12 - File
- 12 - Library member
- 1 - Library type
- 8 - Date
- 8 - Time
- 9 - Size
- 9 - Free size (Volumes only)
- 255 - Keywords
- 255 - Descriptions
-
- PCATXLT - PC-Catalog translation program Page 2
-
- Finally, if you chose an SDF format for either the input or
- the output, you will be asked to completely define the locations of
- every field. To eliminate a field entirely, just make its length
- zero. Notice that when you change the order, length, etc., that
- the other fields change also. It can get confusing however so I
- would suggest that you set the order first (unused entries at the
- bottom) and then the field lengths next. If you do the starting
- and ending positions last, the position calculations should usually
- be correct before you enter them. Try it.
-
- To put spaces between entries in SDF format, either increase
- the size by the number of spaces required or change the starting
- positions. If you increase the size, spaces will be added AFTER
- the entry.
-
- At this point, PCATXLT will go ahead and do the translation
- and return you to the main menu. You can press [ESC] at this point
- to exit. You could have also pressed [ESC] at many points along
- the way to get out.
-
- General comments:
-
- DIF and ASCII both use double quotes (") as a delimiter so
- double quotes in Keywords and Descriptions are converted to back
- quotes (`) in these formats.
-
- Keywords are normally separated by a single space in dBase
- format and tabs in the others. Many programs don't know what to do
- with the tabs. I have left this to the user to handle since they
- can be extremely handy to get "correct" spacing and can be easily
- eliminated by a filter program in SDF and ASCII formats.
-
- PC-Catalog allows more than one word per 10 byte keyword field
- but PCATXLT will permanently separate them to one word per field.
-
- If you translate to a "CAT" file, PC-Catalog will expect
- everything to be presorted by Volume, Subdirectory, File, and
- Library Member. If they aren't, PC-Catalog will still be able to
- read the catalog but you may get unexpected results from some of
- the functions. PCATXLT is smart enough to create the proper
- records if you don't have separate volume and subdirectory records
- but it won't sort them for you. For example, you could have an SDF
- file that had only file names (such as a bulletin board list) and
- PCATXLT will create a correct "CAT" file (with blank volume and
- subdirectory fields) as long as the SDF file is sorted by filename.
- You could also translate a dBase file with only file records as
- long as the entries were sorted by volume, subdirectory and file
- name.
-
-